package controllers

import (
	"fmt"
	"github.com/kataras/iris/v12/mvc"
	"iris_test/config"
)

type TestController struct {

}

func (c *TestController)BeforeActivation(b mvc.BeforeActivation)  {
	fmt.Println("testController")
	b.Handle("GET", "/*", "Hello")
}


func (c *TestController)Hello() string{
	fmt.Println(config.Conf["module"], config.Conf["controller"], config.Conf["action"])
	return "hello, world"
}